<?php

# 绒博汇商户端

use Illuminate\Support\Facades\Route;

# 商户端微信小程序
Route::namespace('Api')->middleware('api')->group(function () {
    # 商家
    Route::prefix('supply')->group(function ($route) {
        $route->any('list/all', SupplyController::class.'@getAllSupply');
        $route->any('same/mobile', SupplyController::class.'@getSameMobileSupply');
    });
    # 商品
    Route::prefix('goods')->group(function ($route) {
        $route->any('list/sku', GoodsController::class.'@getSkuGoodsList');
        $route->any('spec', SpecController::class.'@getGoodsSpec');
        $route->any('stock/set', SpecController::class.'@setSpecsStock');
        $route->any('status/set', GoodsController::class.'@setGoodsStatus');
    });
    # 订单
    Route::prefix('order')->middleware('api')->group(function($route) {
        $route->any('check_uid', OrderController::class.'@checkOrderUid');
    });
});
